score = int(input('score:'))

if score >= 90:
    print('grade a')
elif score >= 80:
    print('grade b')
elif score < 80:
    print('grade c')
else:
    print("grade d")
